<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/25
 * Time: 10:12
 */

namespace app\index\logic;


use think\Model;

class BaseLogic extends Model
{
    public function __construct($data = [])
    {
        parent::__construct($data);
    }

    public function returnMsg($code='1002',$msg='',$data=''){
        if(empty($data)){
            $data=$this->json([]);
        }
        return ['code'=>$code,'msg'=>$msg,'data'=>$data];
    }
}